//
//  BasicService.h
//  fmdb_demo
//
//  Created by rujia chen on 15/10/18.
//  Copyright (c) 2015年 dfrz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseModel.h"

typedef void(^ResponseBlock)(ResponseModel *model);
typedef void(^NetworkFailBlock)(NSError *error);

typedef void(^ResponseDataBlock)(NSData *responseData);

@interface BasicService : NSObject

+ (void)GET:(NSString*)url params:(NSString*)params success:(ResponseBlock)success fail:(ResponseBlock)fail networkFail:(NetworkFailBlock)networkFail;

+ (void)GETForText:(NSString*)url params:(NSString*)params success:(ResponseDataBlock)success networkFail:(NetworkFailBlock)networkFail;

@end
